package mobi.yuanshen.common.Exception;

import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class CatterBaseException extends RuntimeException {
    private Integer code;
    private String msg;

    public CatterBaseException() {
        super("服务器异常");
        this.msg = "服务器异常";
        this.code = 500;
    }

    public CatterBaseException(Integer code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }
}